import { createConnection, getRepository } from 'typeorm';
import connectionOption from '../config/sql.config';

export default function Db () {
  return createConnection(connectionOption as any).then(connect => connect);
}